package com.adnaan.common.model;

import lombok.Data;

import java.io.Serializable;

/**
 * 分页查询请求
 */
@Data
public class PageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 当前页码，从1开始
     */
    private int pageNum = 1;

    /**
     * 每页数量，默认10
     */
    private int pageSize = 10;

    /**
     * 排序字段
     */
    private String orderBy;

    /**
     * 排序方式：ascending/descending
     */
    private String orderType;
} 